<script setup>
import { ref, computed } from 'vue'
const scoreList = ref([80, 70, 95, 98, 65])
const betterList = computed(() => {
  // 在这里执行计算逻辑，然后返回
  return scoreList.value.filter(item => item > 90)
})
setTimeout(() => {
  scoreList.value.push(93)
  scoreList.value.push(72)
}, 2000)
</script>

<template>
  <div class="">
    <p>成绩：{{ scoreList }}</p>
    <p>优秀：{{ betterList }}</p>
  </div>
</template>

<style scoped></style>
